﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LowLevelGraphics.ImageFormats
{
    public class TGA : AbstractImageFormat, IImageFormat
    {
        /// <summary>
        /// Gets extension
        /// </summary>
        public override string Extension
        {
            get { return "tga"; }
        }

        /// <summary>
        /// Creates the specified _s file name.
        /// </summary>
        /// <param name="_sFileName">Name of the _s file.</param>
        /// <returns></returns>
        public static UnsafeBitmap Create(string _sFileName)
        {
            TargaImage cpsd = new TargaImage(_sFileName);
            return cpsd.Image;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="_sFileName"></param>
        /// <returns></returns>
        public override bool Save(string _sFileName)
        {
            throw new NotImplementedException();
        }
    }
}
